package com.molichuxing.gateway.observer.observable;

import java.util.Observable;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import com.molichuxing.gateway.observer.entity.EventBean;

@Component
public class MessageEvent extends Observable {

	@Async
	public void successfully(EventBean bean) {
		this.setChanged();
		this.notifyObservers(bean);
	}
}
